package com.zian.domain.po;

import com.baomidou.mybatisplus.annotation.*;


import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_order_item")
 @ApiModel("SysOrderItem对象" )
public class SysOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty( "订单关联购物项主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty( "订单主键id")
    private Long orderId;

    @ApiModelProperty( "关联商品id")
    private Long goodsId;

    @ApiModelProperty( "下单时商品的名称(订单快照)")
    private String goodsName;

    @ApiModelProperty( "下单时商品的主图(订单快照)")
    private String goodsImage;

    @ApiModelProperty( "下单时商品的价格(订单快照)")
    private BigDecimal sellingPrice;

    @ApiModelProperty( "数量(订单快照)")
    private Integer goodsCount;

    @ApiModelProperty( "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
